.class public Lcom/xingbook/ecloud/e/p;
.super Landroid/widget/RelativeLayout;


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;F)V
    .locals 9

    const/4 v7, 0x0

    const/4 v1, 0x2

    const/4 v0, 0x1

    const/4 v6, -0x2

    const/4 v8, 0x3

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const/high16 v2, 0x4220

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x4200

    mul-float/2addr v3, p2

    float-to-int v3, v3

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    invoke-virtual {v4, v0}, Landroid/widget/TextView;->setId(I)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    invoke-virtual {v4, v8}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    const/high16 v5, 0x4200

    mul-float/2addr v5, p2

    invoke-virtual {v4, v7, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    const v5, -0xcccccd

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v5, -0x1

    invoke-direct {v4, v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v2, v4, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iput v2, v4, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iput v3, v4, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v5, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    invoke-virtual {p0, v4}, Lcom/xingbook/ecloud/e/p;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setId(I)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    const/high16 v5, 0x41e0

    mul-float/2addr v5, p2

    invoke-virtual {v4, v7, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    const v5, -0x666667

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    invoke-virtual {v4, v8}, Landroid/widget/TextView;->setGravity(I)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v6, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v4, v8, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/high16 v5, 0x4100

    mul-float/2addr v5, p2

    float-to-int v5, v5

    iput v5, v4, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iput v2, v4, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v5, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    invoke-virtual {p0, v4}, Lcom/xingbook/ecloud/e/p;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/ecloud/e/p;->c:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->c:Landroid/widget/TextView;

    const/high16 v5, 0x41e0

    mul-float/2addr v5, p2

    invoke-virtual {v4, v7, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->c:Landroid/widget/TextView;

    const/high16 v5, -0x1

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->c:Landroid/widget/TextView;

    invoke-virtual {v4, v8}, Landroid/widget/TextView;->setGravity(I)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v6, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v4, v8, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/high16 v5, 0x4100

    mul-float/2addr v5, p2

    float-to-int v5, v5

    iput v5, v4, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    invoke-virtual {v4, v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/high16 v5, 0x4220

    mul-float/2addr v5, p2

    float-to-int v5, v5

    iput v5, v4, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iput v2, v4, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iget-object v5, p0, Lcom/xingbook/ecloud/e/p;->c:Landroid/widget/TextView;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v4, p0, Lcom/xingbook/ecloud/e/p;->c:Landroid/widget/TextView;

    invoke-virtual {p0, v4}, Lcom/xingbook/ecloud/e/p;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/view/View;

    invoke-direct {v4, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v5, -0x333334

    invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v6, -0x1

    const/high16 v7, 0x3f80

    cmpl-float v7, p2, v7

    if-lez v7, :cond_0

    move v0, v1

    :cond_0
    invoke-direct {v5, v6, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v5, v8, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iput v3, v5, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    div-int/lit8 v0, v2, 0x2

    iput v0, v5, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    div-int/lit8 v0, v2, 0x2

    iput v0, v5, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    invoke-virtual {v4, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v4}, Lcom/xingbook/ecloud/e/p;->addView(Landroid/view/View;)V

    return-void
.end method


# virtual methods
.method public setData(Lcom/xingbook/ecloud/b/e;)V
    .locals 3

    if-nez p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    const-string v1, "\u4fe1\u606f\u83b7\u53d6\u5931\u8d25"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    const-string v1, "\u73ed\u4e3b\u4efb\uff1a"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/e/p;->c:Landroid/widget/TextView;

    const-string v1, "\u4eba\u6570 0"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ecloud/e/p;->a:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/xingbook/ecloud/b/e;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/e/p;->b:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u73ed\u4e3b\u4efb\uff1a"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/xingbook/ecloud/b/e;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/e/p;->c:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u4eba\u6570 "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/xingbook/ecloud/b/e;->c()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method
